home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / fsttb103.hqx / FastTab 1.03 / stack_-1.xml < prev    next >
Extensible Markup Language  |  1992-03-04  |  6KB  |  43 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.03</name>
  5.     <id>-1</id>
  6.     <cardCount>22</cardCount>
  7.     <cardID>3037</cardID>
  8.     <listID>5830</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>448</width>
  14.         <height>280</height>
  15.     </cardSize>
  16.     <script>-- Scripting copyright ┬⌐ 1991 Symplex Systems.  All rights reserved.on closeStack-- Make sure the stack opens in the small format, the-- next time it is openedif the name of this stack is the name of me then  -- we may be in the user-defined inheritance pathsend openBackground to card 1end if-- CCCheck  -- I won't bother putting trying to trap any other messages-- --          Eventually a closeStack will get through to this stack.pass closeStackend closeStack-- on CCCheck-- if there is not a window "CookieCutter" then-- CCStopUsing-- end if-- end CCCheckon closePalette whichWindowif whichWindow is "CookieCutter" thenCCStopUsingelsepass closePaletteend ifend closePaletteon CCStopUsing-- We separate this into separate handler because closing a window-- does not take effect until the current handlers exitglobal mustCCCheckif mustCCCheck is true thenif IAmBeingUsed() then  -- really shouldn't be required: rather far-fetched that someone would "stop using" this stackstop using meend ifput empty into mustCCCheckend ifend CCStopUsingon CCCloseif there is a window "CookieCutter" thenclose window "CookieCutter"CCStopUsingend ifend CCCloseon createCutter locationPtglobal mustCCCheckCCCloseif not IAmBeingUsed() thenstart using meput true into mustCCCheckend ifpalette "CookieCutter",locationPtend createCutterend CreateCutterfunction IAmBeingUsed-- Returns true if this stack (me, not the current stack!)-- is in the user defined inheritance path.-- It doesn't use a perfect check but it should be good enough-- for this case.-- get the short name of me-- if it is in the stacksInUse then play harpsichord f g a breturn the short name of me is in the stacksInUseend IAmBeingUsedon doCookieCut-- This script does the actual cookie cutting of a cardput the pattern into savePatput the filled into saveFilledput the centered into saveCenteredset the pattern to 1set the centered to falseset the filled to truechoose select toolrepeat with fldNumb = 1 to the number of card fieldsset cursor to busy -- some cursor activity is required for feedback,--                    even if it flickersif the style of card field fldNumb is not transparent thenput the bottomRight of card field fldNumb into botRightsubtract 1 from item 1 of botRightsubtract 1 from item 2 of botRightdrag from the topLeft of card field fldNumb to botRightdomenu "Fill"domenu "Transparent"end ifend repeat-- We provide special case code for the roundRect case.  We also-- ignore all transparent buttons that don't have icons.-- Unfortunately, no special code is provided for transparent-- buttons with icons or radio buttons or checkboxes.  These-- will all require touchup.repeat with btnNumb = 1 to the number of buttonsset cursor to busy -- some cursor activity is required for feedback,--                    even if it flickersput the style of button btnNumb into stylif styl is roundRect thenput the topLeft of button btnNumb into tLeftput the bottomRight of button btnNumb into bRightchoose round rectangle tooldrag from tLeft to bRightclick at -1,-1drag from tLeft to bRightdomenu "Transparent"else if styl is not "transparent" ┬¼or the icon of button BtnNumb is not 0 thenchoose select tooldrag from the topLeft of button btnNumb to┬¼the bottomRight of button btnNumbdomenu "Fill"domenu "Transparent"end ifend repeatCCCloseset the pattern to savePatset the filled to saveFilledset the centered to saveCenteredchoose browse toolend doCookieCuton cancelCookieCutCCCloseend cancelCookieCut</script>
  17.     <background id="2704" file="background_2704.xml" name="" />
  18.     <background id="4603" file="background_4603.xml" name="" />
  19.     <background id="5958" file="background_5958.xml" name="RentalForm" />
  20.     <card id="3037" file="card_3037.xml" marked="false" name="" owner="2704" />
  21.     <card id="4709" file="card_4709.xml" marked="false" name="" owner="4603" />
  22.     <card id="8696" file="card_8696.xml" marked="false" name="Example" owner="5958" />
  23.     <card id="5326" file="card_5326.xml" marked="false" name="Registration, Distributio" owner="4603" />
  24.     <card id="5388" file="card_5388.xml" marked="false" name="" owner="4603" />
  25.     <card id="3747" file="card_3747.xml" marked="false" name="How to Use FastTab" owner="4603" />
  26.     <card id="3883" file="card_3883.xml" marked="false" name="" owner="4603" />
  27.     <card id="9129" file="card_9129.xml" marked="false" name="" owner="4603" />
  28.     <card id="7795" file="card_7795.xml" marked="false" name="Error Results" owner="4603" />
  29.     <card id="9370" file="card_9370.xml" marked="false" name="Limitations and Workaroun" owner="4603" />
  30.     <card id="9663" file="card_9663.xml" marked="false" name="" owner="4603" />
  31.     <card id="9807" file="card_9807.xml" marked="false" name="" owner="4603" />
  32.     <card id="10124" file="card_10124.xml" marked="false" name="" owner="4603" />
  33.     <card id="10281" file="card_10281.xml" marked="false" name="" owner="4603" />
  34.     <card id="11104" file="card_11104.xml" marked="false" name="" owner="4603" />
  35.     <card id="11463" file="card_11463.xml" marked="false" name="" owner="4603" />
  36.     <card id="11667" file="card_11667.xml" marked="false" name="" owner="4603" />
  37.     <card id="4987" file="card_4987.xml" marked="false" name="How to Install FastTab" owner="4603" />
  38.     <card id="2338" file="card_2338.xml" marked="false" name="Compatibility with Future" owner="4603" />
  39.     <card id="6591" file="card_6591.xml" marked="false" name="" owner="4603" />
  40.     <card id="2080" file="card_2080.xml" marked="false" name="Compatibility with Other " owner="4603" />
  41.     <card id="7173" file="card_7173.xml" marked="false" name="Disclaimer" owner="4603" />
  42. </stack>
  43.